import request from '@/utils/request'

// 查询预约列表列表
export function listAppiontment(query) {
  return request({
    url: '/system/appiontment/list',
    method: 'get',
    params: query
  })
}

// 查询预约列表详细
export function getAppiontment(aid) {
  return request({
    url: '/system/appiontment/' + aid,
    method: 'get'
  })
}

// 新增预约列表
export function addAppiontment(data) {
  return request({
    url: '/system/appiontment',
    method: 'post',
    data: data
  })
}

// 修改预约列表
export function updateAppiontment(data) {
  return request({
    url: '/system/appiontment',
    method: 'put',
    data: data
  })
}

// 删除预约列表
export function delAppiontment(aid) {
  return request({
    url: '/system/appiontment/' + aid,
    method: 'delete'
  })
}
